
env=3

portList=(
    18000
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start web_server/WebServer.js --name WebServer-$port   --output="./logs/WebServer"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS"   -- $port $env
done;


portList=(
    18100
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start account_server/account_server.js --name account_server-$port   --output="./logs/account_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
done;

portList=(
    18200
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start gm_server/gm_server.js --name gm_server-$port   --output="./logs/gm_server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS" -- $port $env
done;

portList=(
    443
)
for(( i=0;i<${#portList[@]};i++)) do
    port=${portList[i]}
echo "port="$port
pm2 start htts_server/Https_Server.js --name Https_Server-$port   --output="./logs/Https_Server"-$port".log" --log-date-format="YYYY-MM-DD HH:mm:ss:SSS"   -- $port $env
done;


